package com.haoze.nurseapp.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.haoze.nurseapp.dao.InHospitalMapper;
import com.haoze.nurseapp.dto.patient.PendingPatientQueryDTO;
import com.haoze.nurseapp.service.InHospitalService;
import com.haoze.nurseapp.vo.patient.InHospitalPatientVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 入院
 *
 * @author wangze
 * @date 2020/06/29
 **/
@Service
public class InHospitalServiceImpl implements InHospitalService {

    @Resource
    InHospitalMapper inHospitalMapper;


    @Override
    public PageInfo<InHospitalPatientVO> queryPendingPatients(PendingPatientQueryDTO queryDTO) {
        PageHelper.startPage(queryDTO.getPageNum(), queryDTO.getPageSize());
        return new PageInfo<>(inHospitalMapper.queryPendingPatients());
    }

}
